import { Injectable } from '@nestjs/common';

type Detail = {
  id: string
  name: string
  age: number
}

@Injectable()
export class AppService {
  getHello(): string {
    return 'Hello World!';
  }

  getDetailById(id: string): Detail{
    return {
      id,
      name: '清醒',
      age: 18
    }
  }
}
